package library.service;

import library.po.Book;

import java.util.List;

public interface BookService{
    void closeSqlsession();

    int deleteByIsbn(Integer bookIsbn);

    int insert(Book record);

    int insertSelective(Book record);

    Book selectByIsbn(Integer bookIsbn);

    int updateByIsbnSelective(Book record);

    int updateByIsbn(Book record);

    String selectBookNameByIsbn(Integer isbn);

    List<Book> selectAllBooks();

    List<Book> selectBook(String str);

    int borrowBook(Integer bookIsbn);

    int returnBook(Integer bookIsbn);
}
